local skel = fk.CreateSkill {
  name = "emo__lixin",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["emo__lixin"] = "离心",
  [":emo__lixin"] = "锁定技，你受到女性角色造成的锦囊伤害-1，你对男性角色造成的锦囊伤害+1。",
}

skel:addEffect(fk.DamageInflicted, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    if target == player and player:hasSkill(skel.name) and data.card and data.card.type == Card.TypeTrick then
      return data.from and data.from:isFemale()
    end
  end,
  on_use = function(self, event, target, player, data)
    data:changeDamage(-1)
  end,
})

skel:addEffect(fk.DamageCaused, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    if target == player and player:hasSkill(skel.name) and data.card and data.card.type == Card.TypeTrick then
      return data.to and data.to:isMale()
    end
  end,
  on_use = function(self, event, target, player, data)
    data:changeDamage(1)
  end,
})

return skel
